<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BOSS.Framework.Search.Result.ISearchResult>" %>
<%@ Import Namespace="BOSS.Domain.Security" %>
<%@ Import Namespace="BOSS.Web.Extensions" %>

<%
    var data = new 
    {
        totalCount = Model.TotalCount,
        rows = Model.UnderlayerItems.OfType<Account>().Select( x => new 
        {
            Id = x.Id,
            Url = Url.Action("Details", "Account", new { id = x.Id }),
            LoginName = x.LoginName,
            EmployeeId = x.EmployeeId,
            FullName = x.FullName,
            Telephone = x.Telephone,
            Mobile = x.Mobile,
            Email = x.Email,
            QQ = x.QQ,
            MSN = x.MSN
        })
    };
%>

<%= Html.ToJson(data) %>